/*
 * Preference.java
 *
 * Created on 2008/07/20 +0900
 *
 * $Revision: 33 $
 * $Date: 2008-07-27 15:31:44 +0000 (Sun, 27 Jul 2008) $
 */

package org.gikolet.framework.preference;

import org.gikolet.framework.util.Assert;

/**
 * @author Tetsutaro (latest modification by $Author: tetsutaro.ss $)
 * @version $Revision: 33 $ $Date: 2008-07-27 15:31:44 +0000 (Sun, 27 Jul 2008) $
 */
public abstract class Preference implements Preferencable {
    private PreferenceStore preferenceStore;

    public void initialize() {
	Assert.isNotNull(this.preferenceStore);
    }

    public void setPreferenceStore(PreferenceStore preferenceStore) {
	Assert.isNotNull(preferenceStore);

	this.preferenceStore = preferenceStore;
    }

    public PreferenceStore getPreferenceStore() {
	Assert.isNotNull(this.preferenceStore);

	return this.preferenceStore;
    }
}
